<?php

require_once(WSB_MODULES_PATH . 'sherpa/forms/SherpaForm.php');

class Sherpa_Form_GuestCheckoutEmail extends Sherpa_Form_SherpaForm
{

	public function init()
    {
    	$this->setName('guest-checkout');

    	// E-Mail
        $element = new Zend_Form_Element_Text('baEmail');
        $element->setLabel('registrationEmail');
        $element->setRequired(true);
        $emailValidator = new WSB_Validator_EmailAddressSimple();
		$emailValidator->setMessages(array(
			WSB_Validator_EmailAddressSimple::INVALID => 'registrationInvalidEmailAddress'
    	));
        $element->addValidator($emailValidator);
        $element->addFilter(new Zend_Filter_StringTrim());
		$this->addElement($element);

    	// Button
        /*
    	$element = new Zend_Form_Element_Submit('btnGuestCheckout');
        $element->setLabel('registrationButtonGuestCheckout');
		$this->addElement($element);
		*/

        $element = new Zend_Form_Element_Image('btnGuestCheckout');
        $element->setAttrib('src', 'sherpa/img/btn-als-gast-bestellen.gif');
		$this->addElement($element);

    }

}
